<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<view class="star-rating-box">
			<view class="title fontSize14 color333">评分</view>
			<star-rating @changeScore='changeScore' name='scoreNum' :score='scoreNum'></star-rating>
		</view>
		<view class="star-rating-box">
			<view class="title fontSize14 color333">准时</view>
			<star-rating @changeScore='changeScore' name='punctualNum' :score='punctualNum'></star-rating>
		</view>
		<view class="star-rating-box">
			<view class="title fontSize14 color333">服务</view>
			<star-rating @changeScore='changeScore' name='serviceNum' :score='serviceNum'></star-rating>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'Hello',
				scoreNum: 0, //评分分
				punctualNum: 0, //准时分
				serviceNum: 0, //服务分
			};
		},
		onLoad() {

		},
		methods: {
			changeScore(param) {
				this[param.name] = param.score;
			},
		}
	}
</script>

<style>

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
